﻿@model IEnumerable<Fmis10_1.Models.Person>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Default.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.PersonFirstName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PersonLastName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PersonFullName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PersonGender)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.BloodGroup)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Weight)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Height)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.State)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateOfBirth)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PlaceOfBirtth)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Nationality)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Comment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PassportNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PassportIssueDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PassportExpireDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PassportIssuePlace)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IDCard)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateOfCreation)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IssuePlace)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PublicComment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Country)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.City)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.County)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Postcode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsPublicContact)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PrivateNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WorkNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PrivateCell)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PrivateEmail)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WorkEmail)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RegularCountry)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RegularAddress)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RegularCity)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RegularCounty)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RegularPostcode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CareerFromdate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CareerEnddate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CareerWorkplace)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CareerPosition)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EducationLevel)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Major)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Language)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FamilyBackground)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PersonFirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PersonLastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PersonFullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PersonGender)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BloodGroup)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Weight)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Height)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.State)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfBirth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PlaceOfBirtth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Nationality)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PassportNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PassportIssueDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PassportExpireDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PassportIssuePlace)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IDCard)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfCreation)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IssuePlace)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PublicComment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Country)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.County)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Postcode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsPublicContact)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PrivateNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WorkNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PrivateCell)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PrivateEmail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WorkEmail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RegularCountry)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RegularAddress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RegularCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RegularCounty)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RegularPostcode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CareerFromdate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CareerEnddate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CareerWorkplace)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CareerPosition)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EducationLevel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Major)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Language)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FamilyBackground)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.PersonId }) |
            @Html.ActionLink("Details", "Details", new { id=item.PersonId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.PersonId })
        </td>
    </tr>
}

</table>
